gdksurface-win32.c: Fix display of CSD windows
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 15 Sep 2020 07:37:32 +0000 (15:37 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 15 Sep 2020 07:56:36 +0000 (15:56 +0800)
commit52ba70d549fab82f6910be4e9f72b62567b06d32
tree3fa1a131d3c8d7c2705137de9d0bf1a2f1dfd352
parent02aec7f5f40810401b7dc0ddb069585b7d707d9d
gdksurface-win32.c: Fix display of CSD windows

Since the changes to GDK to use surface subtypes, CSD windows were
broken because we did not set the window styles properly.  Fix this by
first acquiring whether decorations are used by the GtkWindow, and based
on that result we set the decorations that we want to use accordingly
and so apply them.

Thanks to Matt Jakeman for investigating into the issue and providing
pointers to a proposed fix.

Fixes issue #3157, besides the part where window sizes are not correct
since that is likely caused a separate issue.
gdk/win32/gdksurface-win32.c
gdk/win32/gdksurface-win32.h